package com.znufe.exam.viewmodel.admin.question;

import com.znufe.exam.base.BasePage;
import lombok.Data;

@Data
public class QuestionPageRequestVM extends BasePage {

    private Integer id;

    private Integer level;

    private Integer subjectId;

    private String title;

    private Integer questionType;

    public static QuestionPageRequestVM wipeBlank(QuestionPageRequestVM model) {
        if (model.getTitle() != null) {
            model.setTitle(model.getTitle().trim());
        }
        return model;
    }

}
